#include<bits/stdc++.h>
using namespace std;
#define int long long

string s;

signed main() {
//	freopen("D:\\code\\OJ code\\LuoGu\\P1042_2.in", "r", stdin);
//	freopen("D:\\desktop\\tt.txt", "w", stdout);
	char ch;
	int w, l;
	w = l = 0;
	while (cin >> ch) {
		if (ch == '\n')	continue;
		if (ch == 'E') {
//			if (w || l)
			cout << w << ":" << l << endl;
			w = l = 0;
			break;
		}
		if (ch == 'W')	w++;
		if (ch == 'L')	l++;
		s += ch;

		if (w >= 11 && w - l >= 2) {
			cout << w << ":" << l << endl;
			w = l = 0;
		} else if (l >= 11 && l - w >= 2) {
			cout << w << ":" << l << endl;
			w = l = 0;
		}
	}

	cout << endl;

	for (int i = 0; i < s.size(); i++) {
		if (s[i] == 'W')	w++;
		if (s[i] == 'L')	l++;

		if (w >= 21 && w - l >= 2) {
			cout << w << ":" << l << endl;
			w = l = 0;
		} else if (l >= 21 && l - w >= 2) {
			cout << w << ":" << l << endl;
			w = l = 0;
		}
	}
//	if (w || l)
	cout << w << ":" << l;
	return 0;
}
